import CommonService from '../service'

class CommonController {
    static async upload(ctx) {
        const files = ctx.request.files; // 获取上传文件
        const origin = ctx.origin
        ctx.body =  CommonService.upload(origin,files)
    }

    static async upload_qiniu(ctx) {
        ctx.body = {}
            // ctx.body = await CommonService.qiniu() 
    }

}

export default CommonController;